Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployer to newer version #72

Closed
wants to merge 11 commits into from
Closed

Conversation

tshabatyn
Copy link

The old version of deployer throws the following error in the Docker container.

PHP Fatal error:  require(): Failed opening required 'recipe/common.php' (include_path='phar:///var/www/html/bin/dep/bin/../:.:/usr/share/pear:/usr/share/php') in /var/www/html/vendor/jalogut/magento2-deployer-plus/recipe/magento_2_2_5.php on line 13

@erfanimani
Copy link
Collaborator

erfanimani commented Dec 29, 2021

LGTM, happy to merge this in. What do you think @sprankhub?

It excludes PHP 8+, but compatibility could be added in another PR (even if it's just adding it to the list of supported PHP versions)

Fixes #75

- composer self-update
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php --version=1.10.19
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- php composer-setup.php --version=1.10.19
- php composer-setup.php --1

Why do we fix this to a specific version? I suggest using at least the latest v1 version. Or can we even switch to v2?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been using this with Composer 2 just fine, so it probably could do without a version

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, composer 2 is now supported on both 2.3 and 2.4, so I agree that there's no need to hardcore composer version to v1

@erfanimani
Copy link
Collaborator

Closing this one as I've created a newer PR which includes this one (#80)

@erfanimani erfanimani closed this Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants